Skip to content

Conversation

@aweigold
Copy link

Handles issue #749

Reduced zombie processes when running in a container by utilizing a python requests based health check that can reap stalled checks. Fixed the health endpoint. Added SIGCHLD handler to main process to reap terminated child processes.

…ython requests based health check that can reap stalled checks. Fixed the health endpoint. Added SIGCHLD handler to main process to reap terminated child processes.
Admin9705 added a commit that referenced this pull request Jan 22, 2026
Changes:
1. Add SIGCHLD handler to reap terminated child processes (zombies)
2. Replace curl healthcheck with Python requests to reduce process spawning
3. Update healthcheck to use /api/health endpoint

Technical details:
- SIGCHLD handler uses os.waitpid(-1, os.WNOHANG) pattern
- Python healthcheck reduces spawning of curl processes every 30s
- Proper exception handling for ChildProcessError and OSError
@Admin9705
Copy link
Contributor

Thank you so much! Updated via - https://github.com/plexguide/Huntarr.io/releases/tag/8.2.18 - please help anytime :D

@Admin9705 Admin9705 closed this Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants